import React from 'react';
import Main from './Main';
import About from './../route1/About';
import Topic from './../route1/Topic';
import Home from './Home';
import { HashRouter as Router, Route, Link, Switch} from 'react-router-dom';
export default class TRouter extends React.Component{
    render() {
        return (
            <Router>
                <Home>
              
               <Route path='/main'   render={() => 
                   <Main>
                        <div>
                        <Route path='/main/a'    component={About} />
                        </div>
                   </Main>
               } />
               <Route path='/about'    component={About} />
               <Route path='/topic'    component={Topic} />
              
                </Home>
            </Router>
        )
    }
}
